package com.example.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.pojo.User;

import java.util.List;
import java.util.Map;

public interface Uservice extends IService<User> {

    boolean saveOrUpdateById(User user);

    Page<User> page(Integer current, Integer size, String username);

    boolean deleteBatchIds(List<Long> ids);

    User getUserByUsername(String username);

    boolean register(User user);

    Map<String, Object> login(String username, String password);
}